package com.oak.designmode._01_factoryPattern.easyFactory;

/**
 * 简单工厂模式
 *
 * @ClassName: FactoryTest
 * @Description  一个工厂生产3种口味的冰淇淋
 * @Author guoxy
 * @Date 2019/12/4
 * @Version 1.0
 */
public class Test {

    public static void main(String[] args) {

        IceCream appleIceCream = IceCreamFactory.creamIceCream("Apple");
        appleIceCream.taste();

        IceCream bananaIceCream = IceCreamFactory.creamIceCream("Banana");
        bananaIceCream.taste();

        IceCream orangeIceCream = IceCreamFactory.creamIceCream("Orange");
        orangeIceCream.taste();
    }
}
